<?php
namespace app\api\controller\yop;

use customtool\Utils;

class OrderQuery extends Base {
    public function index() {
        return $this->fetch();
    }
    
    // 订单查询接口
    public function send() {
        $data = input('post.');
        $data['merchant_id'] =  $this->C('merchantId');
        $data['signature'] = apiChangyuanSign($data, $this->C('md5key')); // 创建签名
        $result = Utils::curl($this->C('orderQueryUrl'), $data);
        return $result;
    }
}
